﻿{block name="title" prepend}Планетарий{/block}
{block name="content"}
<table style="width:760px; text-align:left;">
	<tr>
		<th colspan="3">Увеличение полей на планете</th>
	</tr>
	<tr>	
    	<form action="game.php?page=planet&mode=field" method="POST">
        <input type="hidden" id="type" value="{$type}">
        <input type="hidden" id="power" value="{$power}">
        <input type="hidden" id="kolvo"  value="{$purchased_fields}">
		<td>У вас на планете {$Field} полей</td>
		<td>
        	Увеличение полей обойдётся Вам в <span style="color:#0F0; font-weight:bold;" id="cost_filds">0</span> <a href='game.php?page=trader&amp;mode=obmen'>Темной материи</a><br />
         	{if $darkmatter >= $type}
            	<input id="filds" name="filds" maxlength="2" size="3" onkeyup="Fild();" value="0" type="text">
				<input value="Добавить" type="submit">
                </form>
            {else}
     			<a href='game.php?page=trader&amp;mode=obmen'><span style="font-weight:bold; color:#0F0">{$LNG.replenish} ТМ</span></a>
            {/if}
        </td>
	</tr>
    {if $planet_type !=3}
    <tr>
		<th colspan="3">Телепорт планеты</th>
	</tr>
	<tr>
    	<td>
        	Телепорт планеты обойдётся Вам<br />
         	<span style="color:#0F0; font-weight:bold;" id="cost_tp">0</span> <a href='game.php?page=trader&amp;mode=obmen'>Темной материи</a>
        </td>
		<td>
        	<table>
            	<tr>
                	<td>Галактика</td>
                    <td>Система</td>
                    <td>Планета</td>
                </tr>
                <form action="game.php?page=planet&mode=coord" method="POST">
                <input type="hidden" id="galaxy1" name="galaxy1" value="{$galaxy}">
              	<input type="hidden" id="system1" name="system1" value="{$system}">
                <tr>
                	<td>
                        
                        <input id="galaxy" name="galaxy" onkeyup="TPort();" size="1" value="{$galaxy}" type="text">
                    </td>
                    <td><input id="system" name="system" onkeyup="TPort();" size="3" value="{$system}" type="text"></td>
                    <td><input id="planets" name="planets" onkeyup="TPort();" size="1" value="{$planet}" type="text"></td>
                </tr>
                <tr>
                	<td colspan="3">
                    {if $darkmatter >= 50}
                    	<input value="Телепортировать" type="submit">
                    {else}
                        <a href='game.php?page=trader&amp;mode=obmen'><span style="font-weight:bold; color:#0F0">{$LNG.replenish} ТМ</span></a>
                    {/if}
                    </td>
                </tr>
                </form>
            </table>
       	</td>
	</tr>
    {/if}
</table>
{/block}
